.advancedFilterElement-btn-drafts { display: none !important }
.advancedFilterElement-btn-all-drafts { display: none !important }
.advancedFilterElement-btn-spam { display: none !important }
.advancedFilterElement-btn-trash { display: none !important }
.advancedFilterElement-btn-folder { display: none !important }
.advancedFilterElement-btn-label { display: none !important }

.advancedFilterElement-state-drafts {
    .advancedFilterElement-btn-drafts { display: inline-block !important }
}
.advancedFilterElement-state-all-drafts {
    .advancedFilterElement-btn-all-drafts { display: inline-block !important }
}
.advancedFilterElement-state-spam {
    .advancedFilterElement-btn-spam { display: inline-block !important }
}
.advancedFilterElement-state-trash {
    .advancedFilterElement-btn-trash { display: inline-block !important }
}
.advancedFilterElement-state-folder {
    .advancedFilterElement-btn-folder { display: inline-block !important }
}
.advancedFilterElement-state-label {
    .advancedFilterElement-btn-label { display: inline-block !important }
}

[class*="advancedFilterElement-btn"] { overflow: hidden }

[class*="advancedFilterElement-btn"] > div {
    width: 100%;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}

[class*="advancedFilterElement-btn"] > div:before {
    width: 16px;
    height: 35px;
    margin-left: 5px;
    font-size: .8em;
    display: block;
    content: "";
}


[class*="advancedFilterElement-btn"] > div > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[class*="advancedFilterElement-btn"].active > div {
    font-weight: bold;
}

[class*="advancedFilterElement-btn"].active > div:before {
    font-family: FontAwesome;
    content: "\f00c";
}

.pm_buttons .advancedFilterElement-btn-dropdown.advancedFilterElement-btn-dropdown {
    border-radius: 2px;
}
